package io.renren.modules.yckj.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;
import java.util.List;

/**
 * 优惠券日志
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2025-06-05
 */
@Data
@Schema(name = "优惠券日志")
public class CouponsLogsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "主键")
	private Long id;

	@SchemaProperty(name = "用户id")
	private Long userId;

	@SchemaProperty(name = "用户名称")
	private String username;

	@SchemaProperty(name = "订单id")
	private Long orderId;

	@SchemaProperty(name = "是否使用:0否，1是")
	private Integer status;

	@SchemaProperty(name = "优惠券id")
	private Long couponsId;

	@SchemaProperty(name = "优惠券类型：0无门槛，1满减")
	private Integer type;

	@SchemaProperty(name = "名称标题")
	private String title;

	@SchemaProperty(name = "图片")
	private String image;

	@SchemaProperty(name = "优惠金额")
	private BigDecimal discount;

	@SchemaProperty(name = "最少金额")
	private BigDecimal minAmount;

	@SchemaProperty(name = "有效日期")
	private Date deadlineTime;

	@SchemaProperty(name = "开始时间")
	private Date startTime;

	@SchemaProperty(name = "结束时间")
	private Date endTime;

	@SchemaProperty(name = "创建时间")
	private Date createTime;

	@SchemaProperty(name = "更新时间")
	private Date updateTime;

//
//	@Schema(title = "用户ID列表")
//	private List<Long> userIdList;

	@Schema(title = "用户列表")
	private List<String> userIdNameList;


}
